package com.han.hotelplat.pojo.bill;

import java.sql.Timestamp;
import java.util.Date;

import com.han.hotelplat.comm.base.BasePo;


/**
 * TbBill entity. @author MyEclipse Persistence Tools
 */

public class Bill {
/**
 * CREATE TABLE `tb_bill` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `expwalletid` int(11) DEFAULT NULL COMMENT '出账钱包ID',
  `inwalletid` int(11) DEFAULT NULL COMMENT '入账钱包id',
  `createtime` datetime DEFAULT NULL COMMENT '交易时间',
  `amount` float DEFAULT NULL COMMENT '交易金额收款为正，付款为负数',
  `type` int(1) DEFAULT NULL COMMENT '类型，1，任务；2，充值；3，提现。',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注\r\n1，任务：1)主任务号\r\n2，交易：？\r\n3，充值：\r\n3.1线下充值：1）操作者。2）时间。3）回执/到账 截图\r\n3.2线上：1）第三方渠道。2）第三方渠道交易号。3）时间，4）不加回执\r\n\r\n4，提现：\r\n4.1帮工提现（系统自动）：1）银行回执。2）发起时提现时间\r\n4.2帮工提现（后台人员操作）：1）银行回执图片。2）发起时提现时间。3)操作者\r\n4.3酒店提现：【不给提现】\r\n\r\n',
  `taskid` varchar(31) DEFAULT NULL COMMENT '主任务id',
  `chiltaskid` int(11) DEFAULT NULL COMMENT '子任务id',
  `chargechannel` int(11) DEFAULT NULL COMMENT '交易渠道1.平台转账，2微信，3支付宝，4线下转账,5其他',
  `inbalance` float DEFAULT NULL COMMENT '入账钱包入账后余额',
  `expbalance` float DEFAULT NULL COMMENT '出账钱包出账后余额',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8

 */

    // Fields    

     private Integer id;
     private Integer expwalletid;
     private Integer inwalletid;
     private Date createtime;
     private Float amount;
     private Integer type;
     private String remark;
     private String taskid;
     private Integer chiltaskid;
     private Integer chargechannel;
     private Float inbalance;
     private Float expbalance;
     private String optuserid;
     
     private Float balance;//余额
     private Integer state;//提现状态
     
    // Constructors

    /** default constructor */
    public Bill() {
    }

    
    /** full constructor */
    public Bill(Integer expwalletid, Integer inwalletid, Date createtime, 
    		Float amount, Integer type, String remark, String taskid, 
    		Integer chiltaskid, Integer chargechannel, Float inbalance, 
    		Float expbalance,String optuserid) {
        this.expwalletid = expwalletid;
        this.inwalletid = inwalletid;
        this.createtime = createtime;
        this.amount = amount;
        this.type = type;
        this.remark = remark;
        this.taskid = taskid;
        this.chiltaskid = chiltaskid;
        this.chargechannel = chargechannel;
        this.inbalance = inbalance;
        this.expbalance = expbalance;
        this.optuserid = optuserid;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getExpwalletid() {
        return this.expwalletid;
    }
    
    public void setExpwalletid(Integer expwalletid) {
        this.expwalletid = expwalletid;
    }

    public String getOptuserid() {
		return optuserid;
	}


	public void setOptuserid(String optuserid) {
		this.optuserid = optuserid;
	}


	public Integer getInwalletid() {
        return this.inwalletid;
    }
    
    public void setInwalletid(Integer inwalletid) {
        this.inwalletid = inwalletid;
    }

    public Date getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Float getAmount() {
        return this.amount;
    }
    
    public void setAmount(Float amount) {
        this.amount = amount;
    }

    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTaskid() {
        return this.taskid;
    }
    
    public void setTaskid(String taskid) {
        this.taskid = taskid;
    }

    public Integer getChiltaskid() {
        return this.chiltaskid;
    }
    
    public void setChiltaskid(Integer chiltaskid) {
        this.chiltaskid = chiltaskid;
    }

    public Integer getChargechannel() {
        return this.chargechannel;
    }
    
    public void setChargechannel(Integer chargechannel) {
        this.chargechannel = chargechannel;
    }

    public Float getInbalance() {
        return this.inbalance;
    }
    
    public void setInbalance(Float inbalance) {
        this.inbalance = inbalance;
    }

    public Float getExpbalance() {
        return this.expbalance;
    }
    
    public void setExpbalance(Float expbalance) {
        this.expbalance = expbalance;
    }


	public Float getBalance() {
		return balance;
	}


	public void setBalance(Float balance) {
		this.balance = balance;
	}


	public Integer getState() {
		return state;
	}


	public void setState(Integer state) {
		this.state = state;
	}
   

}